\hypertarget{class_document_manager}{\section{Document\-Manager Class Reference}
\label{class_document_manager}\index{Document\-Manager@{Document\-Manager}}
}


{\ttfamily \#include $<$Document\-Manager.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{class_document_manager_abc4060e30e0c3081b66969c1cd10a9ce}{read\-Stop\-Word\-List} (string filename)
\item 
void \hyperlink{class_document_manager_accb0b3f55df86ae3209f022df247f689}{add\-Documents\-From\-File} (string file\-Name)
\item 
void \hyperlink{class_document_manager_a0bf4cec15007beaa5b7f5dff7c0e2a50}{add\-Document} (int id, \hyperlink{class_document}{Document} document)
\item 
map$<$ int, \hyperlink{class_document}{Document} $>$ $\ast$ \hyperlink{class_document_manager_aac0834a0e60fa820f8f2e8c2304d3aca}{get\-Documents} ()
\item 
\hyperlink{class_index_handler}{Index\-Handler} $\ast$ \hyperlink{class_document_manager_ab29279b6f28fd36154b624f1a701e563}{get\-Terms} ()
\item 
\hyperlink{class_document}{Document} \hyperlink{class_document_manager_a4449cd93625e18aa2a84d245485fb17e}{get\-Document} (int doc\-I\-D)
\item 
bool \hyperlink{class_document_manager_af4a227278a2bfd5ff1070f8f6ce3fd24}{document\-Exists} (int doc\-I\-D)
\item 
\hyperlink{class_document_manager_a999689cab3d64144214edc5ab979b01a}{Document\-Manager} (char type)
\end{DoxyCompactItemize}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_document_manager_a999689cab3d64144214edc5ab979b01a}{\index{Document\-Manager@{Document\-Manager}!Document\-Manager@{Document\-Manager}}
\index{Document\-Manager@{Document\-Manager}!DocumentManager@{Document\-Manager}}
\subsubsection[{Document\-Manager}]{\setlength{\rightskip}{0pt plus 5cm}Document\-Manager\-::\-Document\-Manager (
\begin{DoxyParamCaption}
\item[{char}]{type}
\end{DoxyParamCaption}
)}}\label{class_document_manager_a999689cab3d64144214edc5ab979b01a}
Constructor for document manager 
\begin{DoxyParams}{Parameters}
{\em type} & type of structure to use a=avl tree, h=hash table \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{class_document_manager_a0bf4cec15007beaa5b7f5dff7c0e2a50}{\index{Document\-Manager@{Document\-Manager}!add\-Document@{add\-Document}}
\index{add\-Document@{add\-Document}!DocumentManager@{Document\-Manager}}
\subsubsection[{add\-Document}]{\setlength{\rightskip}{0pt plus 5cm}void Document\-Manager\-::add\-Document (
\begin{DoxyParamCaption}
\item[{int}]{id, }
\item[{{\bf Document}}]{document}
\end{DoxyParamCaption}
)}}\label{class_document_manager_a0bf4cec15007beaa5b7f5dff7c0e2a50}
Add a document to the document map, D\-O\-E\-S N\-O\-T parse the document in any way 
\begin{DoxyParams}{Parameters}
{\em id} & the I\-D of the document \\
\hline
{\em document} & the \hyperlink{class_document}{Document} object \\
\hline
\end{DoxyParams}
\hypertarget{class_document_manager_accb0b3f55df86ae3209f022df247f689}{\index{Document\-Manager@{Document\-Manager}!add\-Documents\-From\-File@{add\-Documents\-From\-File}}
\index{add\-Documents\-From\-File@{add\-Documents\-From\-File}!DocumentManager@{Document\-Manager}}
\subsubsection[{add\-Documents\-From\-File}]{\setlength{\rightskip}{0pt plus 5cm}void Document\-Manager\-::add\-Documents\-From\-File (
\begin{DoxyParamCaption}
\item[{string}]{file\-Name}
\end{DoxyParamCaption}
)}}\label{class_document_manager_accb0b3f55df86ae3209f022df247f689}
Add all documents from a given file to the structure 
\begin{DoxyParams}{Parameters}
{\em file\-Name} & the filename of the file to parse all documents from \\
\hline
\end{DoxyParams}
\hypertarget{class_document_manager_af4a227278a2bfd5ff1070f8f6ce3fd24}{\index{Document\-Manager@{Document\-Manager}!document\-Exists@{document\-Exists}}
\index{document\-Exists@{document\-Exists}!DocumentManager@{Document\-Manager}}
\subsubsection[{document\-Exists}]{\setlength{\rightskip}{0pt plus 5cm}bool Document\-Manager\-::document\-Exists (
\begin{DoxyParamCaption}
\item[{int}]{doc\-I\-D}
\end{DoxyParamCaption}
)}}\label{class_document_manager_af4a227278a2bfd5ff1070f8f6ce3fd24}
Check if a document exists in the map 
\begin{DoxyParams}{Parameters}
{\em doc\-I\-D} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if the document exists, false otherwise 
\end{DoxyReturn}
\hypertarget{class_document_manager_a4449cd93625e18aa2a84d245485fb17e}{\index{Document\-Manager@{Document\-Manager}!get\-Document@{get\-Document}}
\index{get\-Document@{get\-Document}!DocumentManager@{Document\-Manager}}
\subsubsection[{get\-Document}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Document} Document\-Manager\-::get\-Document (
\begin{DoxyParamCaption}
\item[{int}]{doc\-I\-D}
\end{DoxyParamCaption}
)}}\label{class_document_manager_a4449cd93625e18aa2a84d245485fb17e}
Return a document matching the given I\-D 
\begin{DoxyParams}{Parameters}
{\em doc\-I\-D} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the document object matching doc\-I\-D 
\end{DoxyReturn}
\hypertarget{class_document_manager_aac0834a0e60fa820f8f2e8c2304d3aca}{\index{Document\-Manager@{Document\-Manager}!get\-Documents@{get\-Documents}}
\index{get\-Documents@{get\-Documents}!DocumentManager@{Document\-Manager}}
\subsubsection[{get\-Documents}]{\setlength{\rightskip}{0pt plus 5cm}map$<$ int, {\bf Document} $>$ $\ast$ Document\-Manager\-::get\-Documents (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_document_manager_aac0834a0e60fa820f8f2e8c2304d3aca}
Get the entire documents map \begin{DoxyReturn}{Returns}
a ptr to the map of documents 
\end{DoxyReturn}
\hypertarget{class_document_manager_ab29279b6f28fd36154b624f1a701e563}{\index{Document\-Manager@{Document\-Manager}!get\-Terms@{get\-Terms}}
\index{get\-Terms@{get\-Terms}!DocumentManager@{Document\-Manager}}
\subsubsection[{get\-Terms}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Index\-Handler} $\ast$ Document\-Manager\-::get\-Terms (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_document_manager_ab29279b6f28fd36154b624f1a701e563}
Pointer to the index handler \begin{DoxyReturn}{Returns}
a ptr to the \hyperlink{class_index_handler}{Index\-Handler} object 
\end{DoxyReturn}
\hypertarget{class_document_manager_abc4060e30e0c3081b66969c1cd10a9ce}{\index{Document\-Manager@{Document\-Manager}!read\-Stop\-Word\-List@{read\-Stop\-Word\-List}}
\index{read\-Stop\-Word\-List@{read\-Stop\-Word\-List}!DocumentManager@{Document\-Manager}}
\subsubsection[{read\-Stop\-Word\-List}]{\setlength{\rightskip}{0pt plus 5cm}void Document\-Manager\-::read\-Stop\-Word\-List (
\begin{DoxyParamCaption}
\item[{string}]{filename = {\ttfamily \char`\"{}StopWordsList.txt\char`\"{}}}
\end{DoxyParamCaption}
)}}\label{class_document_manager_abc4060e30e0c3081b66969c1cd10a9ce}
Read the stopword list into the stopwords vector 
\begin{DoxyParams}{Parameters}
{\em filename} & the filename of the file to read stopwords from \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
C\-:/\-Users/\-Christopher/\-Documents/\-Net\-Beans\-Projects/pbsearch/\-Search\-Engine/\hyperlink{_document_manager_8h}{Document\-Manager.\-h}\item 
C\-:/\-Users/\-Christopher/\-Documents/\-Net\-Beans\-Projects/pbsearch/\-Search\-Engine/\hyperlink{_document_manager_8cpp}{Document\-Manager.\-cpp}\end{DoxyCompactItemize}
